package com.kaifamiao.abstracts;

// 用 具体类(concrete class) 继承 抽象类(abstract class)
public class Monkey extends Animal {

    public Monkey() {
        super();
        logger.info( "执行Monkey类的无参构造" );
    }

    public Monkey(String name) {
        super(name);
        logger.info( "执行Monkey类的有构造" );
    }

    public static void main(String[] args) {

        // 创建抽象类(Animal)的非抽象子类(Monkey)的实例
        Animal a = new Monkey( "者行孙" );
        a.introduce();

    }
}
